package nave.tecii.game;

import java.io.InputStream;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.Log;
import android.view.MotionEvent;

public abstract class GameObject
{
	protected Bitmap image;
	protected float x;
	protected float y;
	protected int w;
	protected int h;
	
	public GameObject (float x, float y, int w, int h, Bitmap image)
	{
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		
		InputStream is = context.getAssets().open("quadros/monalisa.png");
		image = BitmapFactory.decodeStream(is);
		
		//this.image = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(image));
	}
	
	public void Update()
	{
		
	}
	
	public void Draw(Graphics graphics)
	{
		graphics.drawImage(this.image, (int)x, (int)y, w, h, null);
	}
}

